package com.start.viewutils;

import android.content.Context;

public class EnumSingleton {

    private Context mContext;

    public EnumSingleton setContext(Context mContext) {
        this.mContext = mContext;
        return this;
    }

    private enum Singleton {
        INSTANCE;

        Singleton() {
            viewTest = new EnumSingleton();
        }

        private EnumSingleton viewTest;

        private EnumSingleton getInstance(Context context) {
            return viewTest.setContext(context);
        }
    }

    public static EnumSingleton getInstance(Context context) {
        return Singleton.INSTANCE.getInstance(context);
    }

}
